package com.ddwl.message.mapper;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.message.model.ShopMessageUser;
import com.ddwl.message.model.ShopMessageUserList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ShopMessageUserMapper extends TkMapper<ShopMessageUser> {

    List<ShopMessageUserList> getListByShopId(@Param("shopId") String shopId);

    void  updateReadStatus(@Param("shopId") String shopId,@Param("messageId") String messageId);

    void insertByList(@Param("list") List<ShopMessageUser> list);

    void deleteByMessageId(@Param("messageId") String messageId);

    List<ShopMessageUserList> getHasRead(@Param("messageUser") ShopMessageUser messageUser);

    void changeId(@Param("map") Map<String, String> map);

    void changeMessageInfoId(@Param("map") Map<String, String> map);
}